/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package clases;

/**
 *
 * @author carlos
 */
public class Turno extends Root{
  
  private Integer id;
  private Integer capacidad;
  private String hora;
  private String dia;
  private String sede;
  
  //Getters
  public Integer getId(){return this.id;}
  public Integer getCapacidad(){return this.capacidad;}
  public String getHora(){return this.hora;}
  public String getDia(){return this.dia;}
  public String getSede(){return this.sede;}
  
  //Setters
  public void setId(Integer a){this.id = a;}
  public void setCapacidad(Integer a){this.capacidad = a;}
  public void setHora(String a){this.hora = a;}
  public void setDia(String a){this.dia = a;}
  public void setSede(String a){this.sede = a;}

    public boolean hasValidAtts() {
        return capacidad != null && capacidad != 0 &&
                hora != null && !hora.isEmpty() && dia != null && !dia.isEmpty()
                && sede != null && (sede.equals("LITORAL") || sede.equals("SARTENEJAS"));
    }
}
